﻿

//

using BootstrapBlazor.Components;
using LaserMark.Components.Events;
using LaserMark.Components.Utils;
using LaserMark.DataAccess.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LaserMark.Extensions;
public static class LogEventBus
{
    public static async Task Log(this IRibbonTabEventBus @event, AuditLog log)
    {
        await @event.PublishAsync(new RibbonTabEventMessage(new RibbonTabItem() { Command = RibbonTabConstants.LogInfomation }) { Payload = log });
    }
}
